
<html>
<head>
	<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div id="header">
		<p >Edit Merchant Page.</p>
	</div>
	<div id="container">	
		<a href="dashboard.php">dashboard</a> > <a href="Merchant.php">merchant</a> > <a href="">Editmerchant</a>
		<br>	
		<br>
	<?php
		include 'connectDB.php';
		$strSQL = "SELECT * FROM tbl_merchant WHERE mer_id = '".$_GET[MerID]."' ";
		$objQuery  = mysql_query($strSQL);
		$objResult = mysql_fetch_array($objQuery);
		if(!$objResult)
		{
			echo "Not found mer_id =".$_GET["MerID"];
		}
		else
{
?>
		<form name="frmEditMer" action="EditMerchantSave.php?MerID=<?=$_GET["MerID"];?>" method="post">
		<table border="0 " cellpadding="10" cellspacing="0" style="margin-left: 50px;">
	
			<tr>
				<td>Merchant ID :</td>
				<td><input type="text" name="txtMerID" style="padding: 10px;" disabled="" value="<?php echo $objResult[mer_id];?>"></td>
			</tr>
			<tr>
				<td>Merchant Name :</td>
				<td><input type="text" name="txtMerName" style="padding: 10px;" value="<?php echo $objResult[mer_name];?>"></td>
			</tr>
			<tr>
				<td>Description :</td>
				<td><textarea name="txtDes" cols="30" rows="5" style="padding: 12px;"><?php echo $objResult[description];?></textarea></td>
			</tr>
			<tr>
				<td>Longtitude :</td>
				<td><input type="text" name="txtLong" style="padding: 10px;" value="<?php echo $objResult[longtitude];?>"/></td>
			</tr>	
			<tr>
				<td>Latitude :</td>
				<td><input type="text" name="txtLa" style="padding: 10px;" value="<?php echo $objResult[latitude];?>"/></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" name="submit" value="update" style="padding: 10px;"></td>
			</tr>	
	<?php
	}
	?>	
		</table>
		</form>
	</div>
</body>
</html>